package com.sl.au.service;

import com.sl.au.entity.News;

import com.sl.au.repository.NewsRepository;

import java.util.List;
import java.util.Map;

public interface NewsService extends BaseService {
	NewsRepository getRepository();

	List<News> getPage(int start, int length, String key, String orderName, String dir);

	List<News> getNews(int start, int length, Map<String, String> condition, String orderName, String dir);
	
//	List<News> getIndex(int start, int length, String key, String orderName, String dir);

	List<News> getIndex(int start, int length, Map<String, String> condition, String orderName, String dir);

	Long getNewsCount(Map<String, String> condition);
	Long getIndexCount(Map<String,String> condition);
}
